/*
 * orderinfo_dao.h
 *
 *  Created on: 2013-2-15
 *      Author: panqiuhui
 */

#ifndef ORDERINFO_DAO_H_
#define ORDERINFO_DAO_H_
#include <stdbool.h>
#include "db_connection.h"
#include "../common_struct/orderinfo.h"
#include "../common_struct/orderlist.h"

//查找订单，找到的话返回true，并将结果添加到链表orderlist中，失败返回false
bool search_order(const struct orderinfo_search_request *request,
		OrderList *orderlist);

//删除订单，成功返回true，失败返回false
bool refund_order(struct orderinfo_refund_request *request,
		const OrderList *orderlist);

#endif /* ORDERINFO_DAO_H_ */
